package com.dingreading.cloud.ssxcx.util.jwt;

import com.auth0.jwt.JWT;
import com.auth0.jwt.algorithms.Algorithm;

/**
 * token生成工具
 */
public class JwtHelper {

    /**
     * 伙伴员工token的生成方法
     *
     * @return string
     */
    public static String getToken(String studentUid, String agencyUid, String loginTime) {
        String token = "";
        token = JWT.create().withAudience(studentUid + "-" + agencyUid).sign(Algorithm.HMAC256(loginTime));
        return token;
    }

}
